package com.ruoyi.product.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存日志对象 stock_logs
 *
 * @author jtm
 * @date 2024-12-07
 */
public class StockLogs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存日志id */
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 总数量 */
    @Excel(name = "总数量")
    private Long quantitySum;

    /** 改变数量 */
    @Excel(name = "改变数量")
    private Long quantityChange;

    /** 原因 */
    @Excel(name = "原因")
    private String reason;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setQuantitySum(Long quantitySum)
    {
        this.quantitySum = quantitySum;
    }

    public Long getQuantitySum()
    {
        return quantitySum;
    }
    public void setQuantityChange(Long quantityChange)
    {
        this.quantityChange = quantityChange;
    }

    public Long getQuantityChange()
    {
        return quantityChange;
    }
    public void setReason(String reason)
    {
        this.reason = reason;
    }

    public String getReason()
    {
        return reason;
    }
    public void setCreatedTime(Date createdTime)
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }
    public void setUpdatedTime(Date updatedTime)
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime()
    {
        return updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("productId", getProductId())
                .append("quantitySum", getQuantitySum())
                .append("quantityChange", getQuantityChange())
                .append("reason", getReason())
                .append("createdTime", getCreatedTime())
                .append("updatedTime", getUpdatedTime())
                .toString();
    }
}
